package com.study.mybatis.pojo;

public class TbStudent {
	
	private Integer id ;
	private String name ;
	private Integer age ;
	private Integer addressId ;
	private Integer gradeId ;
	private TbAddress address ;
	
	public TbStudent() {
		super();
	}
	
	public TbStudent(String name, Integer age) {
		this.name = name;
		this.age = age;
	}
	
	public TbStudent(Integer id, String name, Integer age) {
		this.id = id;
		this.name = name;
		this.age = age;
	}

	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public Integer getAddressId() {
		return addressId;
	}

	public void setAddressId(Integer addressId) {
		this.addressId = addressId;
	}

	public Integer getGradeId() {
		return gradeId;
	}

	public void setGradeId(Integer gradeId) {
		this.gradeId = gradeId;
	}
	

	public TbAddress getAddress() {
		return address;
	}

	public void setAddress(TbAddress address) {
		this.address = address;
	}

	@Override
	public String toString() {
		return "TbStudent [id=" + id + ", name=" + name + ", age=" + age + ", addressId=" + addressId + ", gradeId="
				+ gradeId + ", address=" + address + "]";
	}
	
}
